package topo.dialog;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import topo.table.ObjectTable;
import topo.table.ObjectTableModel;
import topo.table.ScrollTablePane;

public class SWRunCpuAndMemDialog extends JDialog {
    JPanel panel1 = new JPanel();
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    JPanel jPanel2 = new JPanel();
    JButton jButtonQuery = new JButton();
    JButton jButtonClose = new JButton();
    ScrollTablePane tablePane;
    BorderLayout borderLayout2 = new BorderLayout();

    public SWRunCpuAndMemDialog(ObjectTableModel objectTableModel) {
        this.tablePane = new ScrollTablePane(new ObjectTable(objectTableModel));
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.panel1.setLayout(this.borderLayout1);
        this.jButtonQuery.setText("刷新");
        this.jButtonQuery.addActionListener(new AlarmDialog_jButtonQuery_actionAdapter(this));

        this.jButtonClose.setText("关闭");
        this.jButtonClose.addActionListener(new AlarmDialog_jButtonClose_actionAdapter(this));
        this.jPanel2.setBorder(BorderFactory.createEtchedBorder());
        this.jPanel1.setLayout(this.borderLayout2);
        getContentPane().add(this.panel1);
        this.panel1.add(this.jPanel1, "Center");
        this.panel1.add(this.jPanel2, "South");

        this.jPanel2.add(this.jButtonClose, null);
        this.jPanel1.add(this.tablePane, "Center");
    }

    void jButtonClose_actionPerformed(ActionEvent e) {
        dispose();
    }

    void jButtonQuery_actionPerformed(ActionEvent e) {
    }
}